<a href="%"></a>
<?php
/**
 * ============================================================================
 * Doxt Version: 1.0           
 * Web: http:
 * Copyright (C) 2007 - 2010 Doxt Technology Inc., All Rights Reserved.
 * ---------------------------------------------
 * $Date: 2008.4.8
*/

  if ($_POST["btn_sub"])
  {
    include_once("sub_edit_news.php");
	exit(0);
  }
/* 分类列表文件,显示所有的分类 */
  //include("list_cate.php");

  $NEWS_ID = intval( $_GET["id"] );
  if (empty($NEWS_ID)) exit(0);

  $query = "SELECT * FROM $TBL_REPAY WHERE id='$NEWS_ID'";
  $result = mysql_query( $query ) or die(mysql_error());
  $rows = mysql_fetch_array( $result);    
  /* 指定模板文件 */
  $tpl -> set_file(array("main" => "edit_news.htm"));  
  $tpl -> set_block("main","TYPE_LIST","type_list"); 
  $tpl -> set_var(array(
						"id" => $rows["id"],
						"name"=> $rows["name"],
						"inbank" => $rows["inbank"],
						"innum" => $rows["innum"],
						"outbank" => $rows["outbank"],
						"outnum" => $rows["outnum"],
						"settime" => $rows['settime'],
					    "price" => $rows['price'],
						"addr" => $rows['addr'],	
						"linkman" =>$rows["linkman"],
						"tel" =>$rows["tel"],
						"senttime" =>$rows["senttime"],
						"datetime" =>$rows["datetime"],	
                       ));
  $tpl -> set_var( $conf);
  $tpl -> parse("Output", "main");
  $tpl -> p("Output");
  exit(0);
?>